package com.smfx.yxt.reqVo;

import org.apache.commons.lang.StringUtils;

import com.smfx.yxt.common.enums.LateCoachType;
import com.smfx.yxt.common.enums.Week;

public class LateCoachQueryVO extends BasePageQueryVO{

	private Integer week;
	
	private String teacherName;
	
	private Integer coachType;
	
	private Integer classId;
	
	private String weekText;
	
	private String coachTypeText;
	
	private String startDate;
	
	private String endDate;
	
	private String monthDate;
	
	private int totalType;

	public Integer getWeek() {
		return week;
	}

	public void setWeek(Integer week) {
		this.week = week;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public Integer getCoachType() {
		return coachType;
	}

	public void setCoachType(Integer coachType) {
		this.coachType = coachType;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getWeekText() {
		return weekText;
	}

	public void setWeekText(String weekText) {
		if(StringUtils.isNotBlank(weekText)) {
			setWeek(Week.getKey(weekText));
		}
		this.weekText = weekText;
	}

	public String getCoachTypeText() {
		return coachTypeText;
	}

	public void setCoachTypeText(String coachTypeText) {
		if(StringUtils.isNotBlank(coachTypeText)) {
			setWeek(LateCoachType.getKey(coachTypeText));
		}
		this.coachTypeText = coachTypeText;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = StringUtils.isNotBlank(startDate) ? startDate : null;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = StringUtils.isNotBlank(endDate) ? endDate : null;
	}

	public String getMonthDate() {
		return monthDate;
	}

	public void setMonthDate(String monthDate) {
		this.monthDate = StringUtils.isNotBlank(monthDate) ? monthDate : null;
	}

	public int getTotalType() {
		return totalType;
	}

	public void setTotalType(int totalType) {
		this.totalType = totalType;
	}
	
}
